package gtkwire.widget;

import gtkwire.GTKWireCommand;
import gtkwire.*;

/**
*A tabbed container. MORE METHODS
*/
public class GtkNotebook extends GtkContainer
{
        public GtkNotebook()
        {
		super();
		this.widgetType = WT_GtkNotebook;
		gtkCreate();
        }

        public GtkNotebook( String name, GladeKey key )
        {
		super( name, key );
		this.widgetType = WT_GtkNotebook;
        }
	
	/**
	*Switches to the page number index. Note that due to historical reasons, GtkNotebook refuses to 
	*switch to a page unless the child widget is visible. Therefore, it is recommended to show child widgets before adding them to a notebook.
	*/
	public void setCurrentPage( int index )
	{
		app().sendCommand( name, GTKWireCommand.SET_CURRENT_PAGE, index );
	}

}//end class
